export const routesPath = [
  {
    path: '/login',
    page: './login'
  },
  {
    icon: 'home',
    path: '/home/index',
    page: './home/index',
    name: '首页',
    code: 'HOME',
    parentCode: 'APP'
  },
  // 用户模块
  {
    icon: 'user',
    name: '用户',
    path: '/beinoen/order',
    key: 'user',
    code: 'USERS',
    parentCode: 'APP',
    hideInRoute: true
  },
  {
    name: '用户管理',
    path: '/users/manage/list',
    page: './users/manage/list',
    key: 'users-manage-list',
    code: 'USERS:MANAGE:LIST',
    parentCode: 'USERS'
  },
  // {
  //   name: '用户管理',
  //   key: 'users-manage',
  //   code: 'USERS:MANAGE',
  //   parentCode: 'USERS',
  //   hideInRoute: true
  // },
  // {
  //   path: '/users/manage/list',
  //   page: './users/manage/list',
  //   name: '用户列表',
  //   code: 'USERS:MANAGE:LIST',
  //   parentCode: 'USERS:MANAGE'
  // },
  {
    path: '/users/manage/login-details/:id',
    page: './users/manage/loginDetails',
    name: '登陆明细',
    code: 'USERS:MANAGE:DETAIL'
    // parentCode: 'USERS',
  },
  {
    name: '积分管理',
    page: './users/integral/manage',
    path: '/users/integral/manage',
    key: 'users-integral-manage',
    code: 'USERS:SCORE',
    parentCode: 'USERS'
  },
  {
    name: '积分明细',
    page: './users/integral/details',
    path: '/users/integral/detail/:userId'
  },
  {
    name: '积分规则',
    page: './users/integral/rules',
    path: '/users/integral/rules'
  },
  {
    path: '/users/invite/manage',
    page: './users/invite/manage',
    name: '邀请管理',
    code: 'USERS:INVITE',
    parentCode: 'USERS'
  },
  // {
  //   path: '/users/rules',
  //   page: './users/rules/index',
  //   name: '用户规则',
  //   code: 'USERS:RULES',
  //   parentCode: 'USERS'
  // },
  {
    path: '/users/manage/user-details/:id',
    page: './users/manage/userDetails',
    name: '用户详情'
  },
  // 场景模块
  {
    icon: 'block',
    name: '场景',
    key: 'sences',
    code: 'SCENE',
    parentCode: 'APP',
    hideInRoute: true
  },
  {
    name: '场景列表',
    page: './scenes/list',
    path: '/scenes/list',
    key: 'scenes-list',
    code: 'SCENE:MANAGE',
    parentCode: 'SCENE'
  },
  {
    path: '/scenes/add',
    page: './scenes/add',
    name: '添加场景',
    code: 'SCENE:ADD',
    parentCode: 'SCENE'
  },
  {
    path: '/scenes/recycle',
    page: './scenes/recycle',
    name: '场景回收',
    code: 'SCENE:RECYCLE',
    parentCode: 'SCENE'
  },
  {
    path: '/scenes/details/:id',
    page: './scenes/details',
    name: '场景查看'
  },
  {
    path: '/scenes/edit/:id',
    page: './scenes/edit',
    name: '场景修改'
  },
  // 商品模块
  {
    icon: 'appstore',
    name: '商品',
    key: 'goods',
    hideInRoute: true,
    code: 'GOODS',
    parentCode: 'APP'
  },
  {
    path: '/goods/list',
    page: './goods/list',
    name: '商品列表',
    code: 'GOODS:MANAGE',
    parentCode: 'GOODS'
  },
  {
    path: '/goods/add',
    page: './goods/add',
    name: '添加商品',
    code: 'GOODS:ADD',
    parentCode: 'GOODS'
  },
  {
    name: '库存管理',
    key: 'goods-mana',
    code: 'GOODS:STORE',
    parentCode: 'GOODS',
    hideInRoute: true
  },
  {
    path: '/goods/store',
    page: './goods/store',
    name: '商品库存',
    code: 'GOODS:STORE:LIST',
    parentCode: 'GOODS:STORE'
  },
  {
    path: '/goods/storeout',
    page: './goods/storeout',
    name: '商品出库',
    code: 'GOODS:STORE:OUT',
    parentCode: 'GOODS:STORE'
  },
  {
    path: '/goods/recycle',
    page: './goods/recycle',
    name: '商品回收站',
    code: 'GOODS:RECYCLE',
    parentCode: 'GOODS'
  },
  {
    path: '/goods/creator',
    page: './goods/creator',
    name: '创作者管理',
    code: 'GOODS:AUTHORS',
    parentCode: 'GOODS'
  },
  // 运营模块
  {
    icon: 'bar-chart',
    name: '运营',
    key: 'operation',
    code: 'OPERATE',
    parentCode: 'APP',
    hideInRoute: true
  },
  // {
  //   name: '动态推送',
  //   key: 'push',
  //   code: 'OPERATE:PUSH',
  //   parentCode: 'OPERATE',
  //   hideInRoute: true
  // },
  // // TODO 自动推送 人工推送 组件还没有 缺少page属性
  // {
  //   name: '自动推送',
  //   path: '/operation/auto/push',
  //   key: 'auto-push',
  //   code: 'OPERATE:AUTO:PUSH',
  //   parentCode: 'OPERATE:PUSH',
  //   hideInRoute: true
  // },
  {
    name: '手动推送',
    path: '/operation/push',
    page: './operation/push',
    code: 'OPERATE:PERSON:PUSH',
    parentCode: 'OPERATE'
  },
  {
    name: '自动推送',
    path: '/operation/autoPush',
    page: './operation/autoPush',
    code: 'OPERATE:AUTO:PUSH',
    parentCode: 'OPERATE'
  },
  {
    path: '/operation/add-push',
    page: './operation/add',
    name: '新建手动推送'
  },
  {
    path: '/operation/edit-push/:id',
    page: './operation/edit',
    name: '编辑手动推送'
  },
  {
    path: '/operation/banner',
    page: './operation/banner',
    name: 'banner管理',
    code: 'OPERATE:BANNER',
    parentCode: 'OPERATE'
  },
  {
    path: '/operation/activity',
    page: './operation/activity',
    name: '活动管理',
    code: 'OPERATE:ACTIVITY',
    parentCode: 'OPERATE'
  },
  {
    path: '/operation/radio',
    page: './operation/radio',
    name: '视频管理',
    code: 'OPERATE:VIDEO',
    parentCode: 'OPERATE'
  },
  // 订单模块
  {
    key: 'order',
    icon: 'file-done',
    name: '订单',
    code: 'ORDER',
    parentCode: 'APP',
    hideInRoute: true
  },
  {
    path: '/order/list',
    page: './order/list',
    name: '订单列表',
    code: 'ORDER:LIST',
    parentCode: 'ORDER'
  },
  {
    path: '/order/infrastructure',
    page: './order/infrastructure',
    name: '订单状态设置',
    code: 'ORDER:SETTINGS',
    parentCode: 'ORDER'
  },
  {
    path: '/order/details/:id',
    page: './order/details',
    name: '订单详情',
    code: 'ORDER:DETAIL'
  },
  // 数据模块
  {
    key: 'data',
    icon: 'pie-chart',
    name: '数据',
    code: 'DATA',
    parentCode: 'APP',
    hideInRoute: true
  },
  // {
  //   path: '/data/member',
  //   page: './data/member',
  //   name: '会员统计',
  //   code: 'DATA:MEMBERS',
  //   parentCode: 'DATA'
  // },
  // {
  //   path: '/data/trade',
  //   page: './data/trade',
  //   name: '交易统计',
  //   code: 'DATA:TRADE',
  //   parentCode: 'DATA'

  // },
  // {
  //   path: '/data/flow',
  //   page: './data/flow',
  //   name: '流量统计',
  //   code: 'DATA:FLUX',
  //   parentCode: 'DATA'

  // },
  // {
  //   path: '/data/goods',
  //   page: './data/goods',
  //   name: '商品统计',
  //   code: 'DATA:GOODS',
  //   parentCode: 'DATA'
  // },
  {
    path: '/data/reconciliation',
    page: './data/reconciliation',
    name: '对账结算',
    code: 'DATA:RECONCILIATION',
    parentCode: 'DATA'

  },
  // 设置模块
  {
    key: 'setting',
    icon: 'setting',
    name: '设置',
    code: 'SETTING',
    parentCode: 'APP',
    hideInRoute: true
  },
  {
    name: '角色权限',
    key: 'role',
    code: 'SETTING:RULES',
    parentCode: 'SETTING',
    hideInRoute: true
  },
  {
    path: '/setup/staff/list',
    page: './setup/staff/list',
    name: '成员管理',
    code: 'SETTING:RULES:MEMBER',
    parentCode: 'SETTING:RULES'
  },
  {
    path: '/setup/department/list',
    page: './setup/department/list',
    name: '部门管理',
    code: 'SETTING:RULES:DEPT',
    parentCode: 'SETTING:RULES'
  },
  {
    path: '/setup/logpage/list',
    page: './setup/logpage/list',
    name: '操作日志',
    code: 'SETTING:RULES:LOG',
    parentCode: 'SETTING:RULES'
  },
  {
    path: '/setup/roles/list',
    page: './setup/roles',
    name: '角色管理',
    code: 'SETTING:RULES:ROLE',
    parentCode: 'SETTING:RULES'
  },
  {
    name: '协议管理',
    key: 'protocol',
    code: 'SETTING:SLA',
    parentCode: 'SETTING',
    hideInRoute: true
  },
  {
    path: '/setup/protocol/list',
    page: './setup/protocol/list',
    name: '协议列表',
    code: 'SETTING:SLA:LIST',
    parentCode: 'SETTING:SLA'
  },
  {
    path: '/setup/protocol/add',
    page: './setup/protocol/add',
    name: '发布协议'
  },
  {
    path: '/setup/protocol/edit/:id',
    page: './setup/protocol/edit',
    name: '编辑协议'
  },
  {
    path: '/setup/help/list',
    page: './setup/help/list',
    name: '帮助列表',
    code: 'SETTING:SLA:HELP',
    parentCode: 'SETTING:SLA'
  },
  {
    path: '/setup/help/add',
    page: './setup/help/add',
    name: '发布帮助'
  },
  {
    path: '/setup/help/edit/:id',
    page: './setup/help/edit',
    name: '编辑帮助'
  },
  {
    path: '/setup/auth/settings',
    page: './setup/auth/settings',
    name: '权限设置'
  },

  // TODO 后续处理
  {
    path: '/users/manage/like-details/:id',
    page: './users/manage/likeDetails',
    name: '点赞明细'
  },
  {
    path: '/users/manage/shoppingcar-details/:id',
    page: './users/manage/shoppingcarDetails',
    name: '购物车明细'
  },
  {
    path: '/users/manage/follow-details/:id',
    page: './users/manage/followDetails',
    name: '关注明细'
  },
  {
    path: '/users/manage/collection-details/:id',
    page: './users/manage/collectionDetails',
    name: '收藏明细'
  },
  {
    path: '/goods/category',
    page: './goods/category'
  },

  {
    path: '/goods/details/:id/:status',
    page: './goods/details',
    name: '商品详情'
  },
  {
    path: '/goods/edit/:id/:status',
    page: './goods/details',
    name: '商品编辑'
  },

  // {
  //   path: '/order/confirm',
  //   page: './order/confirm'
  // },
  // {
  //   path: '/order/refund',
  //   page: './order/refund'
  // },
  // {
  //   path: '/order/return',
  //   page: './order/return'
  // },

  {
    path: '/users/invite/details/:id',
    page: './users/invite/details',
    name: '邀请明细'
  },
  // 商品兑换
  {
    icon: 'appstore',
    name: '商品兑换',
    key: 'exchange',
    code: 'EXCHANGE',
    parentCode: 'APP',
    hideInRoute: true
  }, {
    path: '/exchange/manage',
    page: './exchange/manage',
    name: '兑换商品管理',
    parentCode: 'EXCHANGE',
    code: 'EXCHANGE:GOODS'
  }, {
    path: '/exchange/order',
    page: './exchange/order',
    name: '兑换订单信息',
    parentCode: 'EXCHANGE',
    code: 'EXCHANGE:ORDER'
  }
]
